-
Notifications
You must be signed in to change notification settings - Fork 19
AP-25387: Replaces all usages of deprecated HubItemVersion with ItemVersion #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR replaces the deprecated HubItemVersion class with the new ItemVersion API throughout the codebase. The change updates version handling for linked components by:
- Migrating from
HubItemVersionandLinkTypeenum to newItemVersionsubclasses (CurrentState,MostRecent,SpecificVersion) - Replacing direct URI manipulation with
URLResolverUtilfor parsing and applying version information - Adding proper URI construction using
URIBuilderwith exception handling
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| ChangeComponentHubVersionCommand.java | Updates version change command to use ItemVersion and URLResolverUtil for URI manipulation with error handling |
| ChangeComponentHubVersionDialog.java | Refactors dialog to use ItemVersion subclasses instead of LinkType enum and updates version parsing logic |
| ChangeComponentHubVersionAction.java | Simplifies version retrieval using URLResolverUtil.parseVersion() instead of deprecated HubItemVersion.of() |
| BulkChangeMetaNodeLinksDialog.java | Updates bulk operations to use URLResolverUtil with URIBuilder for version changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...kbench.editor/src/org/knime/workbench/editor2/commands/ChangeComponentHubVersionCommand.java
Outdated
Show resolved
Hide resolved
....workbench.editor/src/org/knime/workbench/editor2/actions/BulkChangeMetaNodeLinksDialog.java
Outdated
Show resolved
Hide resolved
4898e8d to
64c04e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...kbench.editor/src/org/knime/workbench/editor2/commands/ChangeComponentHubVersionCommand.java
Show resolved
Hide resolved
...orkbench.editor/src/org/knime/workbench/editor2/actions/ChangeComponentHubVersionDialog.java
Show resolved
Hide resolved
...orkbench.editor/src/org/knime/workbench/editor2/actions/ChangeComponentHubVersionDialog.java
Show resolved
Hide resolved
…ersion AP-25387 (Remove deprecated `HubItemVersion` and its `LinkType`)
64c04e1 to
6c4769c
Compare
|


AP-25387 (Remove deprecated
HubItemVersionand itsLinkType)